package com.lsege.service.backstage;

import com.lsege.entity.backstage.MerchantOccupancyOrder;
import com.lsege.mapper.backstage.MerchantOccupancyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/8/1 0001.
 */
@Service
public class MerchantOccupancyServiceImpl implements MerchantOccupancyService {
    @Autowired
    MerchantOccupancyMapper merchantOccupancyMapper;

    @Override
    public List<MerchantOccupancyOrder> getMerchantOccupancyOrder() {
        return merchantOccupancyMapper.getMerchantOccupancyOrder();
    }

    @Override
    public Long getOrderCount() {
        return merchantOccupancyMapper.getOrderCount();
    }

    @Override
    public void toPayOver(MerchantOccupancyOrder merchantOccupancyOrder) {
        merchantOccupancyMapper.toPayOver(merchantOccupancyOrder);
    }

    @Override
    public List<MerchantOccupancyOrder> getOneJoinOrder(String checkInCode) {
        return merchantOccupancyMapper.getOneJoinOrder(checkInCode);
    }

    @Override
    public Integer getStateByCode(MerchantOccupancyOrder merchantOccupancyOrder) {
        return merchantOccupancyMapper.getStateByCode(merchantOccupancyOrder);
    }
}
